home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Business Heaven
/
Business Heaven.iso
/
maillist
/
reliance
/
hinstall.bat
< prev
next >
Wrap
DOS Batch File
|
1991-12-06
|
2KB
|
50 lines
echo off
if %2x == x goto instruct
echo This installs the Reliance Mailing List program and documentation
echo from a floppy disk in drive %1: to a hard disk, drive %2:.
echo
echo If this is NOT what you wish to do, press the Ctrl key and the C key
echo at the same time, and then type Y. Otherwise
pause
echo
echo OK, here we go. If you see error messages, enter %0 with
echo no other parameters to see instructions and then try again.
if exist %2:\MAIL\NUL goto subdirok
md %2:\MAIL > nul
REM if not exist %2:\MAIL\NUL md %2:\MAIL > nul
echo
echo Making directory %2:\MAIL.
:subdirok
echo
echo Extracting the program and documentation from the archive file . . .
%1:arce %1:mail24 %2:\MAIL /r
if errorlevel 1 goto badarce
if not exist %1:\register\nul goto noreg
echo
echo Copying Registered User programs . . .
copy %1:\register\*.* %2:\MAIL
:noreg
goto goodarce
:badarce
echo
echo ERROR -- ARCHIVE EXTRACTION FAILED
echo Enter %0 to see instructions and then try again.
goto end
:goodarce
cd %2:\MAIL
%2:
echo
echo Installation complete. The program is on drive %2 in the subdirectory MAIL.
echo You are now in %2:\MAIL. Read the manual, MAIL240.DOC.
goto end
:instruct
echo
echo Oops -- you must enter two letters after %0. Type letters only,
echo no colons, and separate %0 and the letters with spaces.
echo The first letter is the floppy disk drive you are installing FROM.
echo The second letter is the hard disk you are installing TO.
echo For instance, to install from drive A: to drive C:, Enter:
echo
echo %0 A C
:end